package com.cwt.chat.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author chenwt
 * @version V1.0
 * @description 【WebSocket 消息 model】
 * @since 2023年11月09日 14:41:24
 */
@Data
@Builder
@ApiModel(description = "WebSocket 消息内容")
@AllArgsConstructor
@NoArgsConstructor
public class MsgVo {

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "发送消息")
    private String msg;

    @ApiModelProperty(value = "在线人数")
    private int count;

}
